package com.housediyadmin.model
{
	import com.housediyadmin.vo.Goods;
	
	import mx.collections.ArrayCollection;
	
	import org.robotlegs.mvcs.Actor;
	
	/**
	 * 
	 * @author chenchao
	 * 
	 */
	[Bindable]
	public class GoodsModel extends Actor
	{
		public var goodsArray:ArrayCollection = new ArrayCollection();

		public var goodsBrandArray:ArrayCollection;

		public var relateGoodsArray:ArrayCollection = new ArrayCollection();

		public var selectedRelateGoodsArray:ArrayCollection = new ArrayCollection();

		public var goodsSalesArray:ArrayCollection = new ArrayCollection();

		public var goodsNewsArray:ArrayCollection = new ArrayCollection();
		
		public var goodsFittingArray:ArrayCollection = new ArrayCollection();//zb
		
		public var selectedGoods:Goods;
		public var selectedGoodsArr:Array=new Array();
		// caddy
		public var addGoods:Goods;
		public var currentGoods:Goods;
		public function GoodsModel()
		{
			super();
		}
		
		public function updateGoodsFitting(goodsArray:ArrayCollection):void
		{
			this.goodsFittingArray = goodsFittingArray;
		}
		public function updateRelateGoods(relateGoodsArray:ArrayCollection):void
		{
			this.relateGoodsArray = relateGoodsArray;
		}
		
		public function updateGoodsModel(goodsArray:ArrayCollection):void
		{
			this.goodsArray = goodsArray;
		}
		
		public function updateGoodsBrand(goodsBrandArray:ArrayCollection):void
		{
			this.goodsBrandArray = goodsBrandArray;
		}
		
		public function updateGoods(goods:Goods):void
		{
			this.currentGoods = goods;
		}
		public function updateGoodsSales(goodsSalesArray:ArrayCollection):void
		{
			this.goodsSalesArray = goodsSalesArray;
		}
		
		public function updateGoodsNews(goodsNewsArray:ArrayCollection):void
		{
			this.goodsNewsArray = goodsNewsArray;
		}
	}
}